<?php
 /**************************************************
* PluginLotto.com                                 *
* Copyrights (c) 2005-2010. iZAP                  *
* All rights reserved                             *
***************************************************
* @author iZAP Team "<support@izap.in>"
* @link http://www.izap.in/
* @version {version} $Revision: {revision}
* Under this agreement, No one has rights to sell this script further.
* For more information. Contact "Tarun Jangra<tarun@izap.in>"
* For discussion about corresponding plugins, visit http://www.pluginlotto.com/pg/forums/
* Follow us on http://facebook.com/PluginLotto and http://twitter.com/PluginLotto
 */

/*
 *  Generating the page of single entity
 */

$get_query = get_input('qry');
$poll = get_entity($get_query[1]);
if(!$poll)
    {
    forward('pg/'.GLOBAL_IZAP_POLL_PAGEHANDLER);
}
$title = $poll->title;
$area2 = elgg_view_title($title);
$area2 .= func_izap_bridge_view('view/full_view', array('entity' => $poll));
$body = elgg_view_layout('two_column_left_sidebar','',$area2);
page_draw($title, $body);